package com.jwiki.app.rpcui.editor;

import org.eclipse.jface.text.Document;
import org.eclipse.jface.text.IDocumentPartitioner;
import org.eclipse.jface.text.rules.FastPartitioner;

public class XMLDocument extends Document {

    public XMLDocument() {
        IDocumentPartitioner partitioner =
                new FastPartitioner(
                    new XMLPartitionScanner(),
                    new String[] {
                        XMLPartitionScanner.XML_TAG,
                        XMLPartitionScanner.XML_COMMENT });
            partitioner.connect(this);
            setDocumentPartitioner(partitioner);
    }

}
